package fragment;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Shader;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView.ScaleType;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

//import com.example.outlier.prictace_1.Comment.SearchCommentActivity;
import com.example.administrator.ci_edit.R;
import com.makeramen.roundedimageview.RoundedImageView;

/**
 * Created by Administrator on 2017/7/23.
 */

public class MyDisplayFragment extends Fragment {

    private RelativeLayout goto_1;
    private RelativeLayout goto_2;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.zihua_demo, viewGroup, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        goto_1 = (RelativeLayout) view.findViewById(R.id.goto_1);
        goto_2 = (RelativeLayout) view.findViewById(R.id.goto_2);

        goto_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), MyDisplayFragment.class));
            }
        });

        goto_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), MyDisplayFragment.class));
            }
        });
    }
}
